Sheffield | 26-ITP-Jan | Mahmoud Shaabo | Sprint 2 | Form Controls#1113
Sheffield | 26-ITP-Jan | Mahmoud Shaabo | Sprint 2 | Form Controls#1113mahmoudshaabo1984 wants to merge 2 commits intoCodeYourFuture:mainfrom
Conversation
✅ Deploy Preview for cyf-onboarding-module ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
cjyuan
left a comment
There was a problem hiding this comment.
Code looks pretty solid. Just some minor changes needed.
- Currently Lighthouse Accessibility score is 93. Can you improve the score to 100?
Reason given by Lighthouse: Touch targets do not have sufficient size or spacing.
Feel free to use AI to help you figure out possible ways to tackle this issue.
| <input | ||
| id="customerName" | ||
| name="customerName" | ||
| type="text" | ||
| required | ||
| minlength="2" | ||
| autocomplete="name" | ||
| /> |
There was a problem hiding this comment.
Currently a user can enter a name consisting of only space characters (e.g., " "). Can you enforce a stricter validation rule using the pattern attribute to disallow any name that contains only space characters?
Form-Controls/index.html
Outdated
| <input | ||
| id="colourBlack" | ||
| name="colour" | ||
| type="radio" | ||
| value="black" | ||
| required | ||
| /> | ||
| <label for="colourBlack">Black</label> |
There was a problem hiding this comment.
Note: You could consider wrapping the radio button input element inside the label element. This way, you don't need to use id and for attributes.
|
Hi CJ, I have updated the code to address your feedback. I used semantic HTML to increase touch targets for accessibility (targeting score 100) and added the name validation pattern. Ready for your review! Thanks. |
|
Changes look great! Well done. Do you know what the regular expression |
|
"It ensures that the input contains at least one non-whitespace character, so the field cannot be submitted with just spaces."Sent from my iPhoneOn Feb 3, 2026, at 11:39, CJ Yuan ***@***.***> wrote:cjyuan left a comment (CodeYourFuture/Module-Onboarding#1113)
Changes look great! Well done.
Do you know what the regular expression .*\S.* means? Regular expressions are widely used in tech. Do explore the subject when you have spare time.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.
|

I have completed the Form Controls task for Sprint 2.
Work done:
Learners, PR Template